package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CwBlindBoxDrawRecordMapper;
import com.ruoyi.system.domain.CwBlindBoxDrawRecord;
import com.ruoyi.system.service.ICwBlindBoxDrawRecordService;

/**
 * 抽盒记录Service业务层处理
 * 
 * @author hyx
 * @date 2024-11-22
 */
@Service
public class CwBlindBoxDrawRecordServiceImpl implements ICwBlindBoxDrawRecordService 
{
    @Autowired
    private CwBlindBoxDrawRecordMapper cwBlindBoxDrawRecordMapper;

    /**
     * 查询抽盒记录
     * 
     * @param recordId 抽盒记录主键
     * @return 抽盒记录
     */
    @Override
    public CwBlindBoxDrawRecord selectCwBlindBoxDrawRecordByRecordId(Long recordId)
    {
        return cwBlindBoxDrawRecordMapper.selectCwBlindBoxDrawRecordByRecordId(recordId);
    }

    /**
     * 查询抽盒记录列表
     * 
     * @param cwBlindBoxDrawRecord 抽盒记录
     * @return 抽盒记录
     */
    @Override
    public List<CwBlindBoxDrawRecord> selectCwBlindBoxDrawRecordList(CwBlindBoxDrawRecord cwBlindBoxDrawRecord)
    {
        return cwBlindBoxDrawRecordMapper.selectCwBlindBoxDrawRecordList(cwBlindBoxDrawRecord);
    }

    /**
     * 新增抽盒记录
     * 
     * @param cwBlindBoxDrawRecord 抽盒记录
     * @return 结果
     */
    @Override
    public int insertCwBlindBoxDrawRecord(CwBlindBoxDrawRecord cwBlindBoxDrawRecord)
    {
        return cwBlindBoxDrawRecordMapper.insertCwBlindBoxDrawRecord(cwBlindBoxDrawRecord);
    }

    /**
     * 修改抽盒记录
     * 
     * @param cwBlindBoxDrawRecord 抽盒记录
     * @return 结果
     */
    @Override
    public int updateCwBlindBoxDrawRecord(CwBlindBoxDrawRecord cwBlindBoxDrawRecord)
    {
        return cwBlindBoxDrawRecordMapper.updateCwBlindBoxDrawRecord(cwBlindBoxDrawRecord);
    }

    /**
     * 批量删除抽盒记录
     * 
     * @param recordIds 需要删除的抽盒记录主键
     * @return 结果
     */
    @Override
    public int deleteCwBlindBoxDrawRecordByRecordIds(Long[] recordIds)
    {
        return cwBlindBoxDrawRecordMapper.deleteCwBlindBoxDrawRecordByRecordIds(recordIds);
    }

    /**
     * 删除抽盒记录信息
     * 
     * @param recordId 抽盒记录主键
     * @return 结果
     */
    @Override
    public int deleteCwBlindBoxDrawRecordByRecordId(Long recordId)
    {
        return cwBlindBoxDrawRecordMapper.deleteCwBlindBoxDrawRecordByRecordId(recordId);
    }
}
